@import "element-variables.scss";
@import "transition.scss";

body,
html {
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  background-color: rgb(228, 240, 255);
}

*,
*:after,
*:before {
  box-sizing: border-box;
}
$header-height: 60px; // 过滤组件长度
$filter-item-width: 250px; // 范围选择过滤组件长度
$filter-item-range-width: 400px; // 左侧过滤树组件每一项高度
$tree-node-height: 40px; // 高级管理表单标题高度
$advanced-title-height: 50px;
$border-color: rgb(216, 220, 229);
$menuHover: rgba(255, 255, 255, 0.3);
$menu-background-color: transparent;
$tabs-header-margin-bottom: 25px;
$tab-header-background-color: #EBEEF5;
$image-item-width: 120px;
$image-item-height: 67.5px;
$box-padding-size: 25px;
/**
 * 弹窗样式，封装的layer的弹窗
 **/
body .layer-dialog .layui-layer-title {
  border-radius: 4px 4px 0 0;
  border: 1px solid #01000000;
}

body .layer-dialog .layui-layer-setwin {
  color: #ffffff;
}

body .layer-dialog {
  border-radius: 4px;
  border: 1px solid #01000000;
}

body .layer-dialog .layui-layer-content {
  padding: $box-padding-size;
}

body .layer-dialog.layui-layer-iframe .layui-layer-content {
  padding: 0;
}
/**
 * 左树右表弹窗样式
 */
body .layer-advance-dialog {
  border-radius: 4px;
  border: 1px solid #01000000;
  background-color: #F8F8F8;
}

body .layer-advance-dialog .layui-layer-title {
  border-radius: 4px 4px 0 0;
  border: 1px solid #01000000;
}

body .layer-advance-dialog .layui-layer-content {
  padding: 5px 15px;
}
/**
 * 全屏弹窗样式
 */
body .fullscreen-dialog {
  border-radius: 0;
  border: none;
  background-color: #F8F8F8;
}

body .fullscreen-dialog .layui-layer-title {
  display: none;
}

body .fullscreen-dialog .layui-layer-setwin {
  display: none;
}

body .fullscreen-dialog .layui-layer-content {
  padding: 0;
  height: 100vh !important;
}

.orange-project {
  .el-main {
    padding: 0;
  }

  .flex-box {
    flex-wrap: wrap;
  }

  .scrollbar_dropdown__wrap {
    overflow-x: hidden;
  }

  .icon-btn.el-button {
    font-size: 18px;
    padding: 5px 0;
  }

  .default-padding-box {
    padding: $box-padding-size;
  }

  .padding-no-top {
    padding: 0 $box-padding-size $box-padding-size;
  }

  .default-border {
    border: 1px solid $--border-color-base;
  }

  .default-border-left {
    border-left: 1px solid $--border-color-base;
  }

  .default-border-right {
    border-right: 1px solid $--border-color-base;
  }

  .default-border-top {
    border-top: 1px solid $--border-color-base;
  }

  .default-border-bottom {
    border-bottom: 1px solid $--border-color-base;
  }

  .page-close-box {
    position: absolute;
    background: #0092FF;
    transform: rotate(45deg);
    height: 50px;
    width: 50px;
    right: -25px;
    top: -25px;
    text-align: center;

    .el-button {
      transform: rotate(-45deg);
      color: white;
      margin-top: 20px;
    }
  }

  .btn-import+.el-button,
  .el-button+.btn-import {
    margin-left: 10px !important;
  }
  /**
   * 过滤组件样式
   **/
  .mask-box {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    top: 0;
    z-index: 10;
  }

  .filter-box {
    position: relative;
    background-color: white;
    padding: $box-padding-size $box-padding-size 0;
    z-index: 20;
  }

  .advance-filter-box {
    padding-bottom: 25px;
  }

  .filter-item {
    width: $filter-item-width;
  }

  .cascader-item {
    width: 160px !important;
  }

  .is-range,
  .is-search {
    width: $filter-item-range-width;
  }

  .table-operation-box {
    align-self: flex-end;
    margin-bottom: 10px;
    overflow: hidden;
  }

  .table-check-box {
    margin-right: 7px;
  }
  /**
   * 左侧树状组件的样式，用户高级管理表单以及用户管理表单
   **/
  .advanced-left-box {
    border-right: 1px solid $border-color;

    .el-tree-node__content {
      height: $tree-node-height;
    }

    .tree-node-item {
      height: $tree-node-height;
      line-height: $tree-node-height;
      width: 100%;

      .tree-node-menu {
        display: none;
        float: right;
        padding-right: 10px;
        color: red !important;
      }

      &:hover .tree-node-menu {
        display: block;
      }
    }

    .el-tree-node .el-button+.el-button {
      margin-left: 5px;
    }
  }
  /**
   * form表单输入组件宽度
   **/
  .attribute-collapse,
  .full-width-input {
    .el-select {
      width: 100%;
    }

    .el-input {
      width: 100%;
    }

    .el-cascader {
      width: 100%;
    }

    .el-date-editor {
      width: 100%;
    }

    .el-input-number {
      width: 100%;
    }
  }

  .el-form-item.el-form-item--mini {
    min-height: 29px;
  }

  .el-form-item.el-form-item--small {
    min-height: 33px;
  }

  .el-form-item.el-form-item--medium {
    min-height: 37px;
  }

  .el-form-item.el-form-item--default {
    min-height: 41px;
  }

  .el-aside {
    overflow: visible;
  }

  .el-menu {
    border-right-width: 0;
  }

  .sidebar-bg {
    box-shadow: 0 1px 4px rgba(0, 21, 41, .08) !important;
  }

  .sidebar-title {
    display: flex;
    align-items: center;
    height: 60px;
    padding: 0 16px;
    background-color: #EB4446; //更换主题背景色
  }

  .sidebar-title-text {
    font-size: 17px;
    color: $--color-sidebar-title-text;
    // padding-left: 15px;
  }
  @if global-variable-exists(--color-menu-item-active-text-color) {
    .el-menu:not(.el-menu--horizontal) .el-menu-item.is-active {
      color: $--color-menu-item-active-text-color !important;
    }

    .el-menu:not(.el-menu--horizontal) .el-submenu__title i {
      color: $--color-menu-item-active-text-color;
    }
  }
  @if global-variable-exists(--color-menu-item-active-background) {
    .el-menu:not(.el-menu--horizontal) .el-menu-item.is-active {
      @if global-variable-exists(--color-menu-item-active-background-to) {
        background: linear-gradient(to left, $--color-menu-item-active-background, $--color-menu-item-active-background-to);
      } @else {
        background: $--color-menu-item-active-background;
      }
    }

    .el-menu:not(.el-menu--horizontal) .el-menu-item:hover {
      @if global-variable-exists(--color-menu-item-active-background-to) {
        background: linear-gradient(to left, $--color-menu-item-active-background, $--color-menu-item-active-background-to);
      } @else {
        background: $--color-menu-item-active-background;
      }
    }
  }
  @if global-variable-exists(--color-submenu-background) {
    .left-menu .el-submenu .el-menu {
      background-color: $--color-submenu-background;
    }
  }
  /**
   * 多tab页表单，tab样式
   **/
  .el-tabs__header {
    margin: 0 0 20px;
  }
  /**
   * 表格表头背景色
   **/
  .has-gutter .gutter,
  .table-header-gray {
    background-color: $tab-header-background-color;
  }
  /**
   * 操作按钮颜色
   **/
  .table-btn.delete {
    color: #F56C6C;
  }

  .table-btn.delete:hover {
    color: #F78989;
  }

  .table-btn.delete:disabled {
    color: #DCDFE6;
  }

  .table-btn.success {
    color: #67C23A;
  }

  .table-btn.success:hover {
    color: #85CE61;
  }

  .table-btn.success:disabled {
    color: #DCDFE6;
  }

  .table-btn.warning {
    color: #E6A23C;
  }

  .table-btn.warning:hover {
    color: #EBB563;
  }

  .table-btn.success:disabled {
    color: #DCDFE6;
  }
  /**
   * 图片上传以及显示样式
   **/
  .upload-image-item {
    font-size: 40px;
    color: #8c939d;
    width: $image-item-width;
    height: $image-item-height;
    text-align: center;
    display: block;

    .el-upload i {
      line-height: $image-item-height;
    }
  }

  .upload-image-multi {
    display: inline;
  }

  .upload-image-item .el-upload {
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }

  .upload-image-item .el-upload:hover {
    border-color: #409eff;
  }

  .upload-image-show {
    width: $image-item-width;
    height: $image-item-height;
    display: inline;
  }

  .table-cell-image {
    width: $image-item-width;
    height: $image-item-width;
    line-height: $image-item-width;
    text-align: center;
    font-size: $image-item-width;
    color: #606266;
    margin: 0 5px;
  }

  .upload-image-list .el-upload-list__item {
    width: $image-item-width;
    height: $image-item-height;
    line-height: $image-item-height;
  }

  .upload-image-item .el-upload-list--picture-card .el-upload-list__item {
    width: $image-item-width;
    height: $image-item-height;
  }

  .upload-image-item .el-upload.el-upload--text {
    width: $image-item-width;
    height: $image-item-height;
  }

  .upload-image-item .el-upload--picture-card {
    width: $image-item-width;
    height: $image-item-height;
    line-height: $image-item-height;
  }

  .el-upload-list--picture-card .el-upload-list__item-thumbnail {
    height: auto;
  }
  /**
   *
   **/
  $header-menu-height: 32px;

  .sidebar {
    height: 100%;
    background-color: $--color-menu-background;
    // overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 21, 41, .08);
  }

  .header {
    display: flex;
    align-items: center;
    height: $header-height;
    background-color: #EB4446; //更换主题背景色
    color: white;
  }

  .header .menu-column {
    margin-right: 20px;

    .el-menu-item.is-active {
      border-left: 0 solid #47ba5a;
    }
  }

  .header-menu {
    float: right;
    height: $header-menu-height;
    line-height: $header-menu-height;
    display: flex;
    justify-content: flex-end;
    flex-grow: 1;

    .el-dropdown {
      color: white;
    }
  }

  .header-img {
    width: $header-menu-height;
    height: $header-menu-height;
    border-radius: 50%;
    margin-left: 10px;
    float: right;
  }

  .el-menu--horizontal.el-menu {
    background-color: white;
  }

  .el-menu--horizontal > .el-menu-item {
    height: 40px;
    line-height: 40px;
  }

  .el-menu.el-menu--horizontal {
    border-bottom: none;
  }

  .user-dropdown {
    color: $--color-text-secondary;
    cursor: pointer;
    font-size: 12px;
  }

  .user-dropdown-item {
    font-size: 12px;
    color: $--color-text-primary;

    .el-badge {
      margin-top: -8px;
      margin-left: 10px;
      height: 20px;
    }
  }

  .hamburger-container {
    line-height: 70px;
    height: $header-height;
    float: left;
    padding: 0 10px;
  }

  .el-submenu__title {
    background: #00000000;
  }

  .tree-select {
    .el-tree-node__content {
      height: 34px;
      line-height: 34px;
      padding-right: 10px;
    }
  }

  .tree-select.single-select-tree {
    .el-tree-node.is-current > .el-tree-node__content > .el-tree-node__label {
      color: $--color-primary;
      font-weight: 700;
    }
  }

  .cell {
    .operation-cell {
      color: #006CDC;
      cursor: pointer;
      text-decoration: underline;
    }
  }

  .single-select-tree {
    min-width: 200px !important;
  }

  .base-card-header {
    display: flex;
    align-items: center;
    height: 50px;
    line-height: 50px;

    .header-title {
      font-size: 14px;
      font-weight: 500;
      color: #282828;
    }
  }

  .base-card-operation {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
  }

  .el-card__header {
    padding: 0 15px;
  }

  .el-card__body {
    padding: 12px;
  }

  .custom-cascader {
    width: 200px !important;
  }

  .no-scroll {
    overflow: hidden;
  }

  .custom-scroll .el-scrollbar__view {
    overflow-x: hidden !important;
    height: 100% !important
  }

  .upload-img-del {
    position: absolute;
    height: 20px;
    width: 20px;
    line-height: 20px;
    font-size: 16px;
    top: 2px;
    right: 2px;
    color: #C0C4CC;
  }

  .upload-img-del:hover {
    color: #EF5E1C;
  }

  .input-label {
    display: inline-block;
    height: 29px;
    line-height: 28px;
  }

  .input-progress {
    height: 29px;
    display: flex;
    align-items: center;
  }

  .input-item {
    width: 100% !important;
  }

  .table-header-gray {
    background: #fff;
  }

  .card-header {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    line-height: 28px;
  }

  .el-select--mini .el-input__inner {
    min-height: 28px;
  }

  .step-header {
    .title {
      font-size: 18px;
      height: 60px;
      line-height: 60px;
      flex-grow: 1;
      flex-shrink: 0;
      background: white;

      div {
        display: inline-block;
      }

      .header-logo {
        border-radius: 8px;
        height: 40px;
        line-height: 40px;
        text-align: center;
        width: 40px;
        background: rgba(255, 119, 0, 0.1);
        margin-right: 8px;
        font-size: 28px;
      }

      .logo {
        font-size: 20px;
        color: #FDA834;
        margin-right: 8px;
        display: inline-block;
      }
    }

    .step {
      flex-grow: 0;
      flex-shrink: 0;
      padding: 0 50px;
      background: white;
    }

    .operation {
      flex-grow: 1;
      flex-shrink: 0;
      background: white;
    }
  }

  .widget-item {
    position: relative;
    border: 1px dashed rgba(0, 0, 0, 0);
  }

  .widget-item.active {
    border: 1px dashed $--color-primary-light-4;
    background: $--color-primary-light-9;
  }
}

.vxe-table--render-default.border--full .vxe-body--column {
  background-size: 1px 100%, 100% 0 !important;
  border-bottom: 1px solid #e8eaec;
}

.vxe-table--render-default.border--inner .vxe-body--column {
  background-size: 0 100%, 100% 0 !important;
  border-bottom: 1px solid #e8eaec;
}

.third-party-dlg {
  display: flex;
  flex-direction: column;
}

.third-party-dlg .form-box {
  flex-grow: 1;
  flex-shrink: 1;
  min-height: 50px;
}

.third-party-dlg .menu-box {
  flex-grow: 0;
  flex-shrink: 0;
}

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
  background: none;
}

::-webkit-scrollbar-thumb {
  background: #DDDEE0;
  border-radius: 7px;
}

::-webkit-scrollbar-thumb:hover {
  background: #A8A8A8;
}

.el-popper.preview-popper {
  display: none;
}

.gutter-left {
  padding-left: 20px;
}

.gutter-right {
  padding-right: 20px;
}

.gutter-top {
  padding-top: 20px;
}

.gutter-bottom {
  padding-bottom: 20px;
}
@each $item in center, left, right {
  .text-#{$item} {
    text-align: $item;
  }
}
@for $i from 0 through 50 {
  .mx#{$i * 2} {
    margin-right: (2px * $i) !important;
    margin-left: (2px * $i) !important;
  }

  .my#{$i * 2} {
    margin-top: (2px * $i) !important;
    margin-bottom: (2px * $i) !important;
  }

  .mt#{$i * 2} {
    margin-top: (2px * $i) !important;
  }

  .mr#{$i * 2} {
    margin-right: (2px * $i) !important;
  }

  .mb#{$i * 2} {
    margin-bottom: (2px * $i) !important;
  }

  .ml#{$i * 2} {
    margin-left: (2px * $i) !important;
  }
}
@for $i from 0 through 20 {
  .px#{$i * 2} {
    padding-right: (2px * $i) !important;
    padding-left: (2px * $i) !important;
  }

  .py#{$i * 2} {
    padding-top: (2px * $i) !important;
    padding-bottom: (2px * $i) !important;
  }

  .pt#{$i * 2} {
    padding-top: (2px * $i) !important;
  }

  .pr#{$i * 2} {
    padding-right: (2px * $i) !important;
  }

  .pb#{$i * 2} {
    padding-bottom: (2px * $i) !important;
  }

  .pl#{$i * 2} {
    padding-left: (2px * $i) !important;
  }
}

.headerStyle {
  position: relative;

  .el-page-header__title {
    font-size: 16px;
  }

  .el-page-header {
    line-height: 40px;
  }
}

.formStyle {
  .el-form-item__content .el-input-group {
    vertical-align: middle;
  }
}

.iptAppendStyle {
  .el-input-group__append {
    background-color: #409EFF;
    color: white;
    border: #409EFF;
  }

  .el-input-group__append:hover {
    background-color: #66b1ff;
    border-color: #66b1ff;
  }
}

ul {
  list-style: none;
}

li {
  list-style-type: none;
}

.infoTabStyle {
  .el-tabs__active-bar {
    // width: 100px !important;
  }

  .el-tabs__item {
    // width: 100px;
    // text-align: center;
    // padding: 0 !important;
  }
}

.input-with-select {
  .el-input-group__prepend {
    padding: 0;
    border: none;
  }
}

.drawerTitle {
  font-size: 18px;
  font-weight: bolder;
}

.box-card {
  .el-card__header {
    padding: 16px !important;
  }
  border: none;
}

.el-menu--collapse .el-submenu__icon-arrow {
  display: none !important;
}

.login-btn-submit {
  color: white;
  border-color: #ef696b;
  background-color: #ef696b;

  &:hover {
    color: white;
    background-color: #eb4446;
    border-color: #eb4446;
  }
}

.el-date-editor .el-range-separator {
  width: 12%;
}

.activList {
  .el-divider--horizontal {
    margin: 12px 0;
  }
}

.bgWhite {
  background-color: white;
}

.content {
  width: 100%;
  height: calc(100vh - 245px);
  overflow-y: scroll;
  overflow-x: hidden;
  padding-right: 10px;
  margin-top: 20px;
}

.popups {
  display: inline-block;
  width: 200px;
  margin: 0 30px;

  img {
    display: inline-block;
    width: 200px;
    height: 200px;
  }

  .downCodeBtn {
    margin-left: 17px;
  }
}

.el-tree--highlight-current .el-tree-node.is-current > .el-tree-node__content {
  background-color: #fdeced;
}

.handleBtn {
  .el-button {
    margin-right: 10px;
  }

  .el-button + .el-button {
    margin-left: 0;
  }
}

.empty {
  width: 200px;
  margin: 100px auto;

  .el-empty__description {
    text-align: center;
  }
}

.mb15 {
  margin-bottom: 15px;
}
